# 指定了项目所依赖的 Qt 模块
QT       += core gui sql concurrent

# 检查 Qt 的主版本号，如果大于 4，则还会添加 widgets 模块
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# LIBS 指定链接库
LIBS += -L$$THIRD_DIR/third/cos/libs/x64/ -lcossdk
LIBS += -L$$THIRD_DIR/third/cos/third_party/lib/x64/poco/ -lPocoFoundation

# 项目编译时需要搜索的头文件路径
INCLUDEPATH += $$THIRD_DIR/third/cos/include \
    $$THIRD_DIR/third/cos/third_party/include

DEPENDPATH += $$THIRD_DIR/third/cos/include \
    $$THIRD_DIR/third/cos/third_party/include


SOURCES += \
    $$PWD/src/GUI/uicom/uibasedialog.cpp \
    $$PWD/src/GUI/uicom/uibreadwidget.cpp \
    $$PWD/src/GUI/uicom/uicomboline.cpp \
    $$PWD/src/GUI/uicom/uilineedit.cpp \
    $$PWD/src/GUI/uicom/uimessagebox.cpp \
    $$PWD/src/GUI/uicom/uipagewidget.cpp \
    $$PWD/src/GUI/uicom/uiprogresswidget.cpp \
    $$PWD/src/GUI/uicom/uipushbutton.cpp \
    $$PWD/src/GUI/uicom/uiqosdialog.cpp \
    $$PWD/src/GUI/uicom/uitableview.cpp \
    $$PWD/src/GUI/uidelegates/uitableitemdelegate.cpp \
    $$PWD/src/GUI/uilogin/uilogindialog.cpp \
    $$PWD/src/GUI/uimain/uibucketslistwidget.cpp \
    $$PWD/src/GUI/uimain/uibucketstablewidget.cpp \
    $$PWD/src/GUI/uimain/uicreatebucketdialog.cpp \
    $$PWD/src/GUI/uimain/uiobjectstablewidget.cpp \
    $$PWD/src/GUI/uimain/uitoolbarwidget.cpp \
    $$PWD/src/GUI/uitransfer/uidownload.cpp \
    $$PWD/src/GUI/uitransfer/uitransfer.cpp \
    $$PWD/src/GUI/uitransfer/uiupload.cpp \
    $$PWD/src/GUI/uimain/uimain.cpp \
    $$PWD/src/DAO/clouds/daocloudscos.cpp \
    $$PWD/src/DAO/clouds/daocloudsmock.cpp \
    $$PWD/src/DAO/dbs/daologininfo.cpp \
    $$PWD/src/DAO/dbs/daologininfosqlite.cpp \
    $$PWD/src/DAO/versions/version.cpp \
    $$PWD/src/DAO/versions/versioncmd.cpp \
    $$PWD/src/DAO/versions/versionjson.cpp \
    $$PWD/src/middle/logs/basiclogger.cpp \
    $$PWD/src/middle/logs/loggerqdebug.cpp \
    $$PWD/src/middle/logs/loggerproxy.cpp \
    $$PWD/src/middle/gateway/gateway.cpp \
    $$PWD/src/middle/managers/mancloud.cpp \
    $$PWD/src/middle/managers/mandb.cpp \
    $$PWD/src/middle/managers/manglobal.cpp \
    $$PWD/src/middle/managers/manmodels.cpp \
    $$PWD/src/middle/managers/manplugin.cpp \
    $$PWD/src/middle/managers/mansignals.cpp \
    $$PWD/src/middle/helper/bytehelper.cpp \
    $$PWD/src/middle/helper/dbsqlite.cpp \
    $$PWD/src/middle/helper/filehelper.cpp \
    $$PWD/src/middle/config/exceptions.cpp \

HEADERS += \
    $$PWD/src/GUI/uicom/uibasedialog.h \
    $$PWD/src/GUI/uicom/uibreadwidget.h \
    $$PWD/src/GUI/uicom/uicomboline.h \
    $$PWD/src/GUI/uicom/uilineedit.h \
    $$PWD/src/GUI/uicom/uimessagebox.h \
    $$PWD/src/GUI/uicom/uipagewidget.h \
    $$PWD/src/GUI/uicom/uiprogresswidget.h \
    $$PWD/src/GUI/uicom/uipushbutton.h \
    $$PWD/src/GUI/uicom/uiqosdialog.h \
    $$PWD/src/GUI/uicom/uitableview.h \
    $$PWD/src/GUI/uidelegates/uitableitemdelegate.h \
    $$PWD/src/GUI/uilogin/uilogindialog.h \
    $$PWD/src/GUI/uimain/uibucketslistwidget.h \
    $$PWD/src/GUI/uimain/uibucketstablewidget.h \
    $$PWD/src/GUI/uimain/uicreatebucketdialog.h \
    $$PWD/src/GUI/uimain/uiobjectstablewidget.h \
    $$PWD/src/GUI/uimain/uitoolbarwidget.h \
    $$PWD/src/GUI/uitransfer/uidownload.h \
    $$PWD/src/GUI/uitransfer/uitransfer.h \
    $$PWD/src/GUI/uitransfer/uiupload.h \
    $$PWD/src/GUI/uimain/uimain.h \
    $$PWD/src/DAO/clouds/daoclouds.h \
    $$PWD/src/DAO/clouds/daocloudscos.h \
    $$PWD/src/DAO/clouds/daocloudsmock.h \
    $$PWD/src/DAO/dbs/daologininfo.h \
    $$PWD/src/DAO/dbs/daologininfosqlite.h \
    $$PWD/src/DAO/versions/version.h \
    $$PWD/src/DAO/versions/versioncmd.h \
    $$PWD/src/DAO/versions/versionjson.h \
    $$PWD/src/middle/config/apis.h \
    $$PWD/src/middle/config/common.h \
    $$PWD/src/middle/config/errorcode.h \
    $$PWD/src/middle/config/exceptions.h \
    $$PWD/src/middle/config/globals.h \
    $$PWD/src/middle/gateway/gateway.h \
    $$PWD/src/middle/helper/bytehelper.h \
    $$PWD/src/middle/helper/dbsqlite.h \
    $$PWD/src/middle/helper/filehelper.h \
    $$PWD/src/middle/logs/basiclogger.h \
    $$PWD/src/middle/logs/loggerqdebug.h \
    $$PWD/src/middle/logs/loggerproxy.h \
    $$PWD/src/middle/managers/mancloud.h \
    $$PWD/src/middle/managers/mandb.h \
    $$PWD/src/middle/managers/manglobal.h \
    $$PWD/src/middle/managers/manmodels.h \
    $$PWD/src/middle/managers/manplugin.h \
    $$PWD/src/middle/managers/mansignals.h \
    $$PWD/src/middle/structs/cloudmodels.h \
    $$PWD/src/middle/structs/dbmodels.h \

FORMS += \
    $$PWD/src/GUI/uicom/uibasedialog.ui \
    $$PWD/src/GUI/uicom/uibreadwidget.ui \
    $$PWD/src/GUI/uicom/uimessagebox.ui \
    $$PWD/src/GUI/uicom/uipagewidget.ui \
    $$PWD/src/GUI/uicom/uiprogresswidget.ui \
    $$PWD/src/GUI/uicom/uiqosdialog.ui \
    $$PWD/src/GUI/uilogin/uilogindialog.ui \
    $$PWD/src/GUI/uimain/uibucketslistwidget.ui \
    $$PWD/src/GUI/uimain/uibucketstablewidget.ui \
    $$PWD/src/GUI/uimain/uicreatebucketdialog.ui \
    $$PWD/src/GUI/uimain/uimain.ui \
    $$PWD/src/GUI/uimain/uiobjectstablewidget.ui \
    $$PWD/src/GUI/uimain/uitoolbarwidget.ui \
    $$PWD/src/GUI/uitransfer/uidownload.ui \
    $$PWD/src/GUI/uitransfer/uitransfer.ui \
    $$PWD/src/GUI/uitransfer/uiupload.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

